package com.bdgls.java8.ConsumerTest;

/**
 * Created by yibo on 2016-6-21.
 */
class Student {


    String firstName;


    String lastName;


    Double grade;


    Double feeDiscount = 0.0;


    Double baseFee = 20000.0;


    public Student(String firstName, String lastName, Double grade) {


        this.firstName = firstName;


        this.lastName = lastName;


        this.grade = grade;

    }


    public void printFee() {


        Double newFee = baseFee - ((baseFee * feeDiscount) / 100);


        System.out.println("The fee after discount: " + newFee);


    }


}
